using System;

namespace Be.Timvw.Framework.Domain.Ranges
{
    /// <summary>
    /// Factory of Ranges
    /// </summary>
    public static class RangeFactory
    {
        /// <summary>
        /// Returns a DateTime Range for the number of days since 2000-01-01
        /// </summary>
        /// <param name="numberOfDays"></param>
        /// <returns></returns>
        public static Range<DateTime> GetRangeForDaysFromFirstJanuary2000(int numberOfDays)
        {
            DateTime begin = new DateTime(2000, 01, 01);
            DateTime end = begin.AddDays(numberOfDays);
            return new Range<DateTime>(begin, end);
        }
    }
}